﻿using Dapper;
using MySqlConnector;
using System;

namespace DapperDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var conn = new MySqlConnection("server=127.0.0.1;database=test;uid=root;pwd=;charset='utf8';SslMode=None"))
            {
                conn.Open();

                var rows = conn.Query("select 1");
                foreach (var row in rows)
                {
                    Console.WriteLine($"{row}");
                }
            }
            Console.ReadKey();
        }
    }
}
